<?php

/**
 * This is the model metadata class for table "member_account".
 */
class MemberAccountMetadata extends CARMDC
{
	/**
	 * @return string the associated database table name
	 */
	public function tableName()
	{
		return 'member_account';
	}

	/**
	 * @return array validation rules for model attributes.
	 */
	public function rules()
	{
		// NOTE: you should only define rules for those attributes that
		// will receive user inputs.
		return array(
			array('guid, object_type', 'length', 'max'=>50),
			array('worker_name, worker_password', 'length', 'max'=>32),
			array('status', 'length', 'max'=>30),
			array('validity_time', 'safe'),
			// The following rule is used by search().
			// Please remove those attributes that should not be searched.
			array('id, guid, worker_name, worker_password, status, object_type, validity_time', 'safe', 'on'=>'search'),
		);
	}

	/**
	 * @return array relational rules.
	 */
	public function relations()
	{
		// NOTE: you may need to adjust the relation name and the related
		// class name for the relations automatically generated below.
		return array(
		);
	}

	/**
	 * @return array customized attribute labels (name=>label)
	 */
	public function attributeLabels()
	{
		return array(
			'id' => '帐户id',
			'guid' => 'Guid',
			'worker_name' => 'Worker Name',
			'worker_password' => 'Worker Password',
			'status' => 'Status',
			'object_type' => '帐户类型',
			'validity_time' => '有效期',
		);
	}
}